# p = {
#   'name':'funlee'
# }
# p['age'] = 26
# print(p)

d = {
  'name': 'funlee',
  'age': 22,
  'work': 'web'
}
# for key in d:
#   print('d\'s',key,'is',d[key])

# for key, value in d.items():
#   print('d\'s',key,'is',value)

# for k in d.keys():
#   print(k)

# for k in sorted(d.keys()):
#   print(k)


# d2 = {
#   'name': 'web',
#   'age': 22,
#   'work': 'web'
# }
# for v in set(d2.values()):
#   print(v)

# d3 = {
#   'name': 'web',
#   'age': 22,
#   'love': ['aaa','bbb']
# }
# for v in d3.values():
#   print(v)

# print(type(d))
# print(str(d))
# print(d.get('name','hello'))
# print(d.get('love','hello'))

print(d)
name = d.pop('name','hello')
love = d.pop('love','hello')
print(d)
print(name)
print(love)
